import React from 'react'
import * as icons from '@ant-design/icons'
const Icon = (props) => {
  const { component } = props
  return React.createElement(icons[component])
}
export default Icon